package main

import (
	"flag"
	"gitee.com/jmdvirus/jkgo/jk/jklog"
)

var (
	port = flag.Int("port", 6789, "port to listen")
)

func main() {
	flag.Parse()
	jklog.L().SetLevel(jklog.LEVEL_ALL)
	jklog.L().Infoln("start")
	_, err := StartNet("0.0.0.0", *port)
	if err != nil {
		jklog.L().Errorln(err)
		return
	}
	jklog.L().Infoln("end")
}
